<template>
	<view class="container">
		<u-parse :content="content"></u-parse>
		<button class="btn" open-type="contact">
			联系我们
		</button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				content: '',
				tel: ''
			}
		},
		onLoad() {
			this.getData()
		},
		methods: {
			getData() {
				this.$http.post('/app/communals/config', {

				}).then(res => {
					console.log(res)
					if (res.code == 0) {
						this.content = res.data.contact
					} else {
						uni.showToast({
							title: res.msg,
							icon: "none"
						});
					}
				}).catch(err => {
					console.log('表单错误信息：', err);
				})
			},
		}
	}
</script>

<style lang="less" scoped>
	.container {
		padding: 20rpx;
		font-size: 28rpx;
		color: #000000;
		text-align: left;

		.btn {
			width: 320rpx;
			height: 80rpx;
			background: #000000;
			border-radius: 40rpx;
			text-align: center;
			line-height: 80rpx;
			font-size: 32rpx;
			color: #fff;
			font-weight: 600;
			margin: 60rpx auto;

		}
	}
</style>